package cn.tedu.knows.portal.mapper;

import cn.tedu.knows.portal.model.Answer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* <p>
    *  Mapper 接口
    * </p>
*
* @author tedu.cn
* @since 2021-10-27
*/
    @Repository
    public interface AnswerMapper extends BaseMapper<Answer> {

        //根据问题id查询所有回答和回答包含的所有评论方法
        //关联xml文件的sql语句,无需在接口中编写sql
        List<Answer> findAnswersByQuestionId(Integer questionId);

    }
